<?php
header('Content-type: text/css');
include 'var_theme.php';
if(empty($_GET["theme"]))
	$theme = 1;
else
	$theme = $_GET["theme"];
?>
* {
	margin: 0px;
	padding: 0px;
}
body {
	font: 16px/24px Geneva, "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", "DejaVu Sans", "Bitstream Vera Sans", Verdana, Helvetica, Arial, sans-serif;
}

a {
	color: <?php echo $dark[ $theme ]; ?>;
	text-decoration: none;
}
a:hover {
	border-bottom: 1px dotted #bbb;
}

em {
	font-style: normal;
	font-weight: bold;
}

#wrapper {
	width: 900px;
	margin: auto;
}

#nav {
	background: <?php echo $middle[ $theme ]; ?>;
	height: 32px;
	clear: both;
}
h1 {
	width: 200px;
	float: left;
	line-height: 32px;
	margin-left: 12px;
	font-size: 1.35em;
}
h1 a, h1 a:hover {
	color: #fff;
	border-bottom: none;
}
#nav ul {
	padding: 0;
	margin: 0;
	float: right;
	list-style: none;
}
#nav li {
	margin: 0;
	float: left;
	line-height: 32px;
	width: 72px;
	text-align: center;
}
#nav li a {
	display: block;
	height: 32px;
	color: #fff;
}
#nav li a:hover {
	font-weight: bold;
	border-bottom: none;
}
#nav li:hover {
	background: <?php echo $light[ $theme ]; ?>;
}
#nav_current {
	color: #fff;
	background: <?php echo $dark[ $theme ]; ?> !important;
	font-weight: bold;
}

#mainbox,
#widebox,
#sidebar {
	padding: 8px 32px 16px 32px;
	background: #eeeeec;
}
#mainbox {
	float: left;
	width: 536px; /* 536 + 32 * 2 = 600 */
}
#sidebar {
	float: right;
	width: 226px; /* 226 + 32 * 2 = 290 */
}
h2{
	margin: 12px auto 10px auto;
}
textarea {
	width: 100%;
	background: #fff;
	border: solid 4px #ddd;
	font-size: 0.9em;
	font-family: monospace;
}
p {
	margin-bottom: 4px;
}
ul {
	padding-left: 6px;
	margin-bottom: 4px;
}
li {
	margin-top: 6px;
	list-style-type: none;
}

#sidebar form {
	padding-bottom: 8px;
}
#sidebar form p {
	margin: 6px 0px;
}
#sidebar form label {
	margin-right: 15px;
	font-size: 1.2em;
}
#sidebar form input {
	width: 120px;
	font-size: 1.2em;
}
#sidebar form button {
	width: 60px;
	height: 30px;
	font-size: 1.1em;
}
#sidebar li {
	margin-bottom: 4px;
	font-size: 0.95em;
}

.tr_head {
	font-weight: bold;
	color: #8A0E0E;
}
.td_problem {
	width: 200px;
}
tr {
	line-height: 24px;
}

.list td {
	width: 100px;
}

label {
	margin-right: 4px;
}
select {
	margin-right: 8px;
}

.discuss_time {
	font-size: 0.85em;
	text-align: right;
}
.discuss_reply {
	background: #fff;
	padding: 8px 12px;
	margin-bottom: 10px;
}
.discuss_reply h3 {
	float: left;
}
.discuss_main h3 {
	float: left;
}
.discuss_form textarea {
	font-size: 1em;
	font-family: monospace;
}
.discuss_form button {
	width: 100px;
	font-size: 1.2em;
}
.discuss_list_small {
	font-size: 0.8em;
}

#footer {
	clear: both;
	width: 868px; /* 868 + 2 * 16 = 900 */
	height: 32px;
	line-height: 32px;
	padding: 0 16px;
	color: #fff;
	background: <?php echo $middle[ $theme ]; ?>;
}
